#include "zhifu2.h"
#include "mainpage.h"
#include "shop2.h"
#include "ui_zhifu2.h"

zhifu2::zhifu2(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::zhifu2)
{
    ui->setupUi(this);
    QPixmap *pix = new QPixmap(":/zhifu/1.png");
    QSize sz = ui->label_image->size();
    ui->label_image->setPixmap(pix->scaled(sz));
}

zhifu2::~zhifu2()
{
    delete ui;
}

void zhifu2::on_pushButton_clicked()
{
    mainpage *w=new mainpage;
    QMessageBox::information(this,"支付","支付失败！");
    this->close();
    w -> show();
}

void zhifu2::on_pushButton_2_clicked()
{
    shop2 *w=new shop2;
    this->close();
    w -> show();
}
